home *** CD-ROM | disk | FTP | other *** search
/ Hot Metal Pro 4.0 / Hot Metal Pro 4.0.iso / HMPTools / VRCreate / data.z / Click - Rotate and Translate.beh < prev    next >
Encoding:
Text File  |  1996-07-01  |  964 b   |  28 lines

  1. #VRML V2.0 utf8 - PLATINUM technology, inc. 1997
  2. #ADD_TOUCH_SENSOR
  3.  
  4. # heartbeat
  5. DEF $OBJECT_TouchAndRotAndPosTimer TimeSensor {
  6.   cycleInterval 1
  7.  
  8. }
  9.  
  10. #animations
  11. DEF $OBJECT_TouchAndRotAndPos_posAnim PositionInterpolator {
  12.   key [ 0 .5 1 ]
  13.   keyValue [ 0 0 0, 0 5 -5, 0 0 0 ]
  14. }
  15.  
  16. DEF $OBJECT_TouchAndRotAndPos_rotAnim OrientationInterpolator {
  17.   key   [ 0        .2       .4       .6       .8       1 ]
  18.   keyValue [ 0 1 0 0, .1 1 0 2, 1 0 0 2, 1 0 0 4, 0 0 1 2, 0 1 0 0 ]
  19. }
  20.  
  21. #route map
  22. #pos
  23. ROUTE $OBJECT_TouchAndRotAndPosTimer.fraction_changed  TO $OBJECT_TouchAndRotAndPos_posAnim.set_fraction
  24. ROUTE $OBJECT_TouchAndRotAndPos_posAnim.value_changed TO $OBJECT.set_translation
  25. #rot
  26. ROUTE $OBJECT_TouchAndRotAndPosTimer.fraction_changed  TO $OBJECT_TouchAndRotAndPos_rotAnim.set_fraction
  27. ROUTE $OBJECT_TouchAndRotAndPos_rotAnim.value_changed TO $OBJECT.set_rotation
  28. ROUTE $OBJECTTS.touchTime TO $OBJECT_TouchAndRotAndPosTimer.set_startTime